﻿<%@ Control Language="C#" Inherits="Web.Control.WWW.Lesson.sessions" %>
<asp:Literal ID="lLCount" Text="15" runat="server" Visible="false"/>
<div class="common">
	<div class="submenunew">
		<div class="submenu_l">
				<div class="unsub">
					<div class="unsubsel">
					<a href="/teaching/"><span>
				<%if(Page.Request.RawUrl.ToLower().IndexOf("/teaching/")>-1){%>
					<strong><%=GetText("M0036")%></strong></span></a></div>
					<div><img src="/Images/submenu_arrow.gif" /></div>
				<%} else{%>
					<%=GetText("M0036")%></span></a></div>
					<div><img src="/Images/submenu_arrownone.gif" /></div>
				<%}%>
				</div>
				<div class="unsub">
					<div class="unsubsel">
					<a href="/course/"><span>
				<%if(Page.Request.RawUrl.ToLower().IndexOf("/course/")>-1){%>
					<strong><%=GetText("M0037")%></strong></span></a></div>
					<div><img src="/Images/submenu_arrow.gif" /></div>
				<%} else{%>
					<%=GetText("M0037")%></span></a></div>
					<div><img src="/Images/submenu_arrownone.gif" /></div>
				<%}%>
				</div>
				<div class="unsub">
					<div class="unsubsel">
					<a href="/teach/join.htm"><span>
				<%if(Page.Request.RawUrl.ToLower().IndexOf("/teach/join.htm")>-1){%>
					<strong><%=GetText("TP100")%></strong></span></a></div>
					<div><img src="/Images/submenu_arrow.gif" /></div>
				<%} else{%>
					<%=GetText("TP100")%></span></a></div>
					<div><img src="/Images/submenu_arrownone.gif" /></div>
				<%}%>
				</div>
				<div class="cleartm"></div>
		</div>
		<div class="submenu_r"><input id="textKey" type="text" class="common_search" /><a href="#" id="btsearch" class="buttonimg" onclick="Search()" ><img src="/Images/icon_search19.gif" border="0" class="img" /></a></div>
		<div class="cleartm"></div>
	</div>
</div>
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><a href="<%=WWWHost %>/course/<%=cm.CID %>"><%=HttpUtility.HtmlEncode(cm.Title) %></a></h1>
							</div>
							<div class="courses_summary">
								<h3>Lesson <%=lm.Chapter %> <%=HttpUtility.HtmlEncode(lm.Title) %></h3>
							</div>
						</div>
					</div>
				</div>
				<div class="Center9001n">
					<div class="Center9001Right">
						<div class="center9001content">
							<div class="teach_area">
								<h3>Sessions</h3>
								<asp:Repeater ID="repsess" runat="server">
								<ItemTemplate>
								<div class="courses_comment">
									<div class="courses_comment_avatar Pic50"><A class="photo_50" href='<%=WWWHost %>/<%#Eval("SNO") %>.htm' ><img src='<%#Eval("SAvatar").ToString()==""?"/Images/no_pic.gif":Eval("SAvatar") %>'></a></div>
									<div class="courses_comment_Bacontent">
										<div class="courses_comment_acontent"><span class="grey12"><a href='<%=WWWHost %>/<%#Eval("SNO") %>.htm'><%#HttpUtility.HtmlEncode(Eval("SNickname").ToString())%></a> feedback on </span><%#((DateTime)Eval("HappenDate")).ToString(TimeToString2, new System.Globalization.CultureInfo(Lx.Web.Common.UI.Globals.Language))%><div class="margin5D"><%#HttpUtility.HtmlEncode(Eval("SToTDesc").ToString()).Replace("\n", "<br/>")%></div></div>
										<%#Eval("TToSDesc").ToString() != "" ? "<a href='" + WWWHost + "/" + Eval("TNO") + "T.htm'>" + HttpUtility.HtmlEncode(Eval("TNickname").ToString()) + "</a> feedback on </span>" + ((DateTime)Eval("HappenDate")).ToString(TimeToString2, CurLan) + "<div class='margin5D'>" + HttpUtility.HtmlEncode(Eval("TToSDesc").ToString()).Replace("\n", "<br/>") + "</div>" : ""%>
										<div class="courses_comment_delete"><p class="grey11">Professional: <%#Eval("Professional") %><br />Knowledgeable: <%#Eval("Knowledgeable") %><br />Helpful: <%#Eval("Helpful") %></p></div>
										<div class="Clear"></div>
									</div>
									<div class="Clear"></div>
								</div>
								</ItemTemplate> 
								</asp:Repeater>
								<div class="page_num">
								  <%=CreatePageNav(RecordCount, int.Parse(lLCount.Text), pageIndex, "",
										string.Format("<span class='page_none grey10'><a href='{0}/lesson/{1}/sessions-$I$.htm'>{2}</a></span>&nbsp;", WWWHost,lid,HttpUtility.UrlEncode(GetText("..."))),
										"",
										string.Format("<span class='page_none grey10'><a href='{0}/lesson/{1}/sessions-$I$.htm'>{2}</a></span>&nbsp;", WWWHost,lid,HttpUtility.UrlEncode(GetText("..."))),
										string.Format("<span class='page_select'>{0}</span>&nbsp;", pageIndex),
										string.Format("<span class='page_none grey10'><a href='{0}/lesson/{1}/sessions-$I$.htm'>$I$</a></span>&nbsp;",WWWHost,lid)
									)%>  
								</div>
							</div>
						</div>
					</div>
					<div class="Center9001Left">
					    <div class="right_layerA">
							<div class="layer_contentA">
								<h4>Teacher Profile</h4>
								<div class="layer_contentA5">
									<div class="floatl pic50 wid65"><a href="<%=WWWHost %>/<%=cm.MemberNo %>T.htm" title="Aiceseason"><img src='<%=cm.Avatar==""?"/Images/no_pic.gif":cm.Avatar %>' width="50" height="50" border="0" alt="<%=HttpUtility.HtmlAttributeEncode(cm.Nickname) %>"/></a></div>
									<div class="floatr wid120"><span class="text14"><a href="<%=WWWHost %>/<%=cm.MemberNo %>T.htm"><%=HttpUtility.HtmlEncode(cm.Nickname) %></a></span>
									<p><img src="/Images/fbapp_level_<%=cm.StarRate.ToString("N0")%>.gif" title="Rating: <%=cm.StarRate.ToString("N2")%>" /><br />Sessions: <%=asession%><br /><span class="grey11">From <%=BLF.StaticData.GetCountryText(cm.Nationality)%></span></p></div>
									<div class="clear"></div>
								</div>
							</div>
						</div>
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>
